/**
 * 处理一些全局页面控制属性
 */

export default {
  state: {
    tabShow: false,
    tabIndex: 0, 
    from: {}
  },
  mutations: {
    showTab(state, json) {
      state.tabShow = true
    },
    hideTab(state, json) {
      state.tabShow = false
    },
    setTabIndex(state, index) {
      state.tabIndex = index
    }, 
    updateRouterFrom(state, value) {
      state.from = value
    }
  },
}
